package cc.yaomm.service.basic.controller.business.user.vo;

import cc.yaomm.common.basic.enums.StatusEnum;
import cc.yaomm.common.basic.json.convert.EnumJsonSerializer;
import cc.yaomm.common.basic.lang.vo.BaseResultVO;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * Created by XQL on 2021/6/10.
 */
@Data
@ApiModel
public class RoleResultVO extends BaseResultVO {

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("角色名称")
    private String name;

    @ApiModelProperty("角色说明")
    private String note;

    @ApiModelProperty("状态  NORMAL-正常 LOCKED-锁定")
    @JsonSerialize(using = EnumJsonSerializer.class)
    private StatusEnum status;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("更新人")
    private String updateBy;
}
